package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_DisassembleByHandItem", catalog="Id")
public class TccDisassembleByHandItem extends BaseEntity<TccDisassembleByHandItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="SubBomNum", nameJava="subBomNum", typeDataBase="decimal")
	private BigDecimal subBomNum;
	@YsField(nameDataBase="SubBomAmount", nameJava="subBomAmount", typeDataBase="decimal")
	private BigDecimal subBomAmount;
	@YsField(nameDataBase="SubDisNum", nameJava="subDisNum", typeDataBase="decimal")
	private BigDecimal subDisNum;
	@YsField(nameDataBase="SubChw", nameJava="subChw", typeDataBase="varchar")
	private String subChw;
	@YsField(nameDataBase="StoreNum", nameJava="storeNum", typeDataBase="decimal")
	private BigDecimal storeNum;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccDisassembleByHandItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccDisassembleByHandItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TccDisassembleByHandItem setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public BigDecimal getSubBomNum() {
		return subBomNum;
	}
	public TccDisassembleByHandItem setSubBomNum(BigDecimal subBomNum) {
		this.subBomNum = subBomNum;
		return this;
	}
	public BigDecimal getSubBomAmount() {
		return subBomAmount;
	}
	public TccDisassembleByHandItem setSubBomAmount(BigDecimal subBomAmount) {
		this.subBomAmount = subBomAmount;
		return this;
	}
	public BigDecimal getSubDisNum() {
		return subDisNum;
	}
	public TccDisassembleByHandItem setSubDisNum(BigDecimal subDisNum) {
		this.subDisNum = subDisNum;
		return this;
	}
	public String getSubChw() {
		return subChw;
	}
	public TccDisassembleByHandItem setSubChw(String subChw) {
		this.subChw = subChw;
		return this;
	}
	public BigDecimal getStoreNum() {
		return storeNum;
	}
	public TccDisassembleByHandItem setStoreNum(BigDecimal storeNum) {
		this.storeNum = storeNum;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccDisassembleByHandItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccDisassembleByHandItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccDisassembleByHandItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccDisassembleByHandItem tccDisassembleByHandItem(
		String pbid,
		String subCode,
		BigDecimal subBomNum,
		BigDecimal subBomAmount,
		BigDecimal subDisNum,
		String subChw,
		BigDecimal storeNum,
		Integer status
			) {
		TccDisassembleByHandItem entity = new TccDisassembleByHandItem();
		entity.setPbid(pbid);
		entity.setSubCode(subCode);
		entity.setSubBomNum(subBomNum);
		entity.setSubBomAmount(subBomAmount);
		entity.setSubDisNum(subDisNum);
		entity.setSubChw(subChw);
		entity.setStoreNum(storeNum);
		entity.setStatus(status);
		return entity;
	}
}